package org.yh.moodpraise.rabbitmq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: yh
 * @Date: 2020/6/22
 * @Description:
 */

@Configuration
public class MQConfiguration {
    public final static String QUEUENAME="queue";

    @Bean
    Queue queue(){
        return new Queue(QUEUENAME,true);
    }
}
